package com.example.gokchinesefoodmappcdev.service;

import com.baomidou.mybatisplus.extension.api.R;
import com.example.gokchinesefoodmappcdev.entity.CustomerInfo;
import com.example.gokchinesefoodmappcdev.entity.MerchantInfo;
import com.example.gokchinesefoodmappcdev.entity.PageBean;
import com.example.gokchinesefoodmappcdev.util.ResultData;

import java.util.List;

public interface MerchantInfoService {
    /**
     * 添加商户
     * @param merchantInfo 商户信息
     * @return
     */
    ResultData insertMerchantInfo(MerchantInfo merchantInfo);

    /**
     * 分页查询
     * 根据条件查询所有用户
     * @param merchantInfo
     * @param pageNum
     * @param pageSize
     * @return
     */
    public PageBean<MerchantInfo> findMerchantInfoAll(MerchantInfo merchantInfo, int pageNum, int pageSize);

    /**
     * 根据id查询商户
     * @param id 商户id
     * @return
     */
    public ResultData findMerchantInfoById(Integer id);

    /**
     * 更新商户
     * @param merchantInfo
     * @return
     */
    public ResultData updateMerchantInfoById(MerchantInfo merchantInfo);

    /**
     * 批量删除商户
     * @return
     */
    public ResultData deleteMerchanInfoByIds(Integer[] ids);

    /**
     * 修改商户状态
     * @param merchantInfo
     * @return
     */
    public ResultData updateMerchanInfoStatusById(MerchantInfo merchantInfo);

    /**
     * 商户导出
     * @param merchantInfo
     * @return
     */
    public List<MerchantInfo> MerchanInfoListToExcel(MerchantInfo merchantInfo);
}
